public class WhileTest2 {
    public static void main(String[] args) {
        double peakHight = 8848860;
        double paperThickness = 0.1;
        int count = 0;
        while(paperThickness < peakHight){
            paperThickness *= 2;
            count++;
        }
        System.out.println("折叠的次数"+count);
        System.out.println("纸张的最终厚度"+paperThickness);
    }
}
